<template>
    <el-dialog :title="title" :visible="editData.editVisable" @close="close()">
        <el-form label-width="120px" ref="edit" class="approval">
            <h3>基本信息</h3>
            <el-form-item label="店铺名称">
                某某某的修车铺子
            </el-form-item>
            <el-form-item label="店铺地址">
                陕西省西安市雁塔区346号
            </el-form-item>
            <el-form-item label="店铺类别">
                汽车维修，汽车保养，汽车美容
            </el-form-item>
            <el-form-item label="创建时间">
                2018年5月1日
            </el-form-item>
            <el-form-item label="联系电话">
                187-9736-9876
            </el-form-item>
            <el-form-item label="营业时间">
                9:00~19:00
            </el-form-item>
            <el-form-item label="店铺简介">
                主营汽车维修，汽车保养等业务，店铺拥有熟练的技工10名，均有相关的从业证书。
            </el-form-item>
            <el-form-item label="店铺图片">
                <el-row>
                    <el-col :span="23">
                        <img src="http://img62.ddimg.cn/2018/4/10/2018041014083926979.jpg" alt="">
                        <img src="http://img62.ddimg.cn/2018/4/10/2018041014083926979.jpg" alt="">
                    </el-col>
                </el-row>
            </el-form-item>
            <h3>身份认证</h3>
            <el-form-item label="店铺联系人">
                张阿三
            </el-form-item>
            <el-form-item label="身份证号">
                773664198709873745
            </el-form-item>
            <el-form-item label="身份证照片">
                <el-row>
                    <el-col :span="11"><img src="http://img62.ddimg.cn/2018/4/10/2018041014083926979.jpg" alt=""></el-col>
                    <el-col :span="11" :offset="1"><img src="http://img62.ddimg.cn/2018/4/10/2018041014083926979.jpg" alt=""></el-col>
                </el-row>
            </el-form-item>
            <el-form-item label="营业执照">
                <el-row>
                    <el-col :span="23">
                        <img src="http://img62.ddimg.cn/2018/4/10/2018041014083926979.jpg" alt="">
                    </el-col>
                </el-row>
            </el-form-item>
        </el-form>
        <div slot="footer" class="edit-footer">
            <el-button @click="reject()">驳 回</el-button>
            <el-button type="primary" @click="submit()">审核通过</el-button>
        </div>
    </el-dialog>
</template>

<script>
    import { mapGetters } from 'vuex';
    import editMixin from "@/mixins/editMixin";

    export default {
        mixins: [editMixin],

        data() {
            return {
                pageName: 'businessShop',
                editList: ['phone', 'pwd', 'name', 'image'],
                rules: {
                    phone: [
                        { required: true, message: '请输入手机号', trigger: 'blur' }
                    ],
                    pwd: [
                        { required: true, message: '请输入密码', trigger: 'blur' }
                    ],
                    name: [
                        { required: true, message: '请输入用户名', trigger: 'blur' }
                    ]
                }
            };
        },

        computed: {
            ...mapGetters({
                editData: `businessShop/editData`
            }),
            title: function () {
                return '' //this.editData.editType == 'show' ? '详情' : '审核'
            }
        },

        methods: {
            reject() {
                console.log('驳回');
            },
            submit() {
                console.log('审核通过');
            }
        }
    };
</script>

<style lang="less" scoped>
.approval{
    img{
        display: block;
        width: 100%;
    }
}
</style>

